#ifndef max7219_h
#define max7219_h


#include "Arduino.h"





class MAX7219 {
  public:
void write(unsigned long, unsigned long);      //write to the first display when there is only one(address, data)
void write(unsigned long, unsigned long, int); //write to a number display when chained ( address, data, displaynumber)
void pic(int*);       //usedby draw char, but can be used for a custom picture in 8x8 array format
void pic(int*, int);  // same as above but sent to a display in chain
void shiftleft(int*);     //used to alter image, different depending on wiring of matrix, wiring must be the same for all matrixs in chain
void shiftright(int*);
void flip(int*);      // same as above
void raise(int*);      //same as above
void lower(int*);
void rotate(int*);    //same as above
void setup(int, int, int); //used to setup max7219(din,cs,clock)
void drawchar(int);   // draws ascii character
void drawchar(int,int);//draws ascii character to number display in chain

  
  private:

};

#endif
  